//============================================================================
// Name        : project1.cpp
// Author      : chrisitan-alexander
// Version     :
// Copyright   : 
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "opencv2/opencv.hpp"
#include <cmath>
#include "Panograph.h"
#include "ImageContainer.h"

#include "CrossCheckingPanograph.h"

using namespace std;
using namespace cv;


int main() {
   // vector<cv::Mat> images;

	ImageContainer ic;

	string input_path("images/blue_mountains2");
	ic.loadImages(input_path,".JPG");
	std::vector<cv::Mat*> images = ic.getAllImages();


	Panograph pano(input_path);

	pano.buildPanograph(images);
	//pano.benchmarkPanograph(string("images/benchmark"));

	/*while(true) // exit with break when there are no images left
	{
		string whole_input_image_name = ic.getNextImageName();

		cv::Mat * image_ptr = ic.getNextImage();
		if(image_ptr == NULL)
		{

			cout << "No next image!" << endl;
			break;
		}
		Mat image = *image_ptr;
		images.push_back(image);
		pano.try2Add(image);
	}*/
	cout << "!!! DONE !!!" << endl;


	//cout << "ALEX : Cross Checking Panograph" << endl;

	//CrossCheckingPanograph ccpano(images);

	//ccpano.analyze();

	return 0;
}



